<?php

namespace App\Models\MainDB\WarOrder;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

class WarOrderUserAdvanced extends Model
{
    protected $table = 'ln_war_order_user_advanced';

    protected $fillable = [
        'id',
        'user_id',
        'war_order_id',//战令赛季id
        'cost_gold',
        'add_time',
    ];

    public $timestamps = false;

    public function user_data()
    {
        return $this->belongsTo('App\Models\MainDB\UserData', 'user_id', 'user_id');
    }
    public function war_order()
    {
        return $this->belongsTo('App\Models\MainDB\WarOrder\WarOrder', 'war_order_id', 'id');
    }
}
